<?xml version="1.0" encoding="UTF-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <Title>Teste classe</Title>
      <Author>LSANTANA</Author>
      <Description>Classe de Teste.</Description>
      <Shortcut>s2test</Shortcut>
    </Header>
    <Snippet>
      <Declarations>
        <Literal>
          <ID>ClasseATestar</ID>
          <Type>String</Type>
          <ToolTip>Qual classe sera testada?</ToolTip>
          <Default>[Classe_a_ser_testada]</Default>
        </Literal>
        <Literal>
          <ID>Interface</ID>
          <Type>
          </Type>
          <ToolTip>Qual interface sera testada?</ToolTip>
          <Default>[Interface]</Default>
        </Literal>
		<Literal>
          <ID>NomePropriedade</ID>
          <Type>
          </Type>
          <ToolTip>Qual nome da propriedade? </ToolTip>
          <Default>[Propriedade]</Default>
        </Literal>
		<Literal>
          <ID>Field</ID>
          <Type>
          </Type>
          <ToolTip>Qual nome do field.</ToolTip>
          <Default>[Field]</Default>
        </Literal>
      </Declarations>
      <Code Language="VB" Kind="type decl"><![CDATA[Imports System
Imports System.Text
Imports System.Collections.Generic
Imports Microsoft.VisualStudio.TestTools.UnitTesting
Imports FGV.SigaDois.Testes
Imports Spring.Objects.Factory.Xml

<TestClass()> Public Class $ClasseATestar$Teste
    Inherits TesteTransacionalInjecaoDependenciaSpring

#Region " ConfigLocations "

    Protected Overrides ReadOnly Property ConfigLocations() As String()
        Get
            NamespaceParserRegistry.RegisterParser(GetType(Spring.Data.Config.DatabaseNamespaceParser))
            Return New [String]() {}
            'EXEMPLO: Return New [String]() {"assembly://Fgv.Siga2.SpringConfig/Fgv.Siga2.SpringConfig/InjecoesTeste.xml"}
        End Get
    End Property

#End Region

    Private testContextInstance As TestContext
    '''<summary>
    '''Gets or sets the test context which provides
    '''information about and functionality for the current test run.
    '''</summary>
    Public Property TestContext() As TestContext
        Get
            Return testContextInstance
        End Get
        Set(ByVal value As TestContext)
            testContextInstance = value
        End Set
    End Property

#Region "Additional test attributes"
    '
    ' You can use the following additional attributes as you write your tests:
    '
    ' Use ClassInitialize to run code before running the first test in the class
    ' <ClassInitialize()> Public Shared Sub MyClassInitialize(ByVal testContext As TestContext)
    ' End Sub
    '
    ' Use ClassCleanup to run code after all tests in a class have run
    ' <ClassCleanup()> Public Shared Sub MyClassCleanup()
    ' End Sub
    '
    ' Use TestInitialize to run code before running each test
    '<TestInitialize()> Public Overloads Sub Initialize()
    '    MyBase.DefaultRollback = False
    '    MyBase.Initialize()
    'End Sub
    '
    ' Use TestCleanup to run code after each test has run
    ' <TestCleanup()> Public Sub MyTestCleanup()
    ' End Sub
    '
#End Region

#Region "Particoes de Equivalencia"

	'EXEMPLO: Public Const Particao_XXX as String = " Select CAMPO_X from TABELA_Y "

#End Region

#Region "Classes Injetadas"

	Private _$Field$ As $Interface$
    Public Property $ClasseATestar$() As $Interface$
        Get
            Return _$Field$
        End Get
        Set(ByVal value As $Interface$)
            _$Field$ = value
        End Set
    End Property

	Private _particaoEquivalencia As ParticaoEquivalencia 
    Public Property ParticaoEquivalencia() As ParticaoEquivalencia
        Get
			throw new NotImplementedException("Nao esqueca de implementar o codigo abaixo")
			'_particaoEquivalencia = New ParticaoEquivalencia("UMA_CONNECTION_NAME")
            Return _particaoEquivalencia
        End Get
        Set(ByVal value As ParticaoEquivalencia)
            _particaoEquivalencia = value
        End Set
    End Property
	
#End Region

    '<TestMethod()> Public Sub Nome_Da_Operacao()
    '    Assert.Inconclusive("Exemplo de teste positivo")
    'End Sub

    '<TestMethod()> Public Sub Nome_Da_Operacao_Negativo()
    '    Assert.Inconclusive("Exemplo de teste negativo")
    'End Sub

End Class
	  ]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>